package com.videogo;

import java.util.Calendar;
import java.util.List;

import com.videogo.exception.BaseException;
import com.videogo.open.R;
import com.videogo.openapi.EZConstants;
import com.videogo.openapi.EZOpenSDK;
import com.videogo.openapi.bean.EZLeaveMessage;
import com.videogo.openapi.bean.EZProbeDeviceInfo;
import com.videogo.openapi.bean.EZStorageStatus;
import com.videogo.openapi.bean.EZUserInfo;
import com.videogo.test.InterfaceSelfTestActivity;
import com.videogo.test.InterfaceTestActivity;
import com.videogo.ui.cameralist.EZCameraListActivity;
import com.videogo.ui.discovery.SquareColumnActivity;
import com.videogo.ui.util.OpenYSService;
import com.videogo.util.LogUtil;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class InterfaceDemoActivity extends Activity implements OnClickListener,OpenYSService.OpenYSServiceListener {
	private static final String TAG = "InterfaceDemoActivity";
	@Override
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ez_demo_interface_activity);
        
        initData();
        initView();  
	}
    private void initData() {
//    	mEZOpenSDK = EZOpenSDK.getInstance();
    }
    
    private void initView() {
        
    }

    @Override
    public void onClick(View v) {
        Intent intent  = null;
        int id =v.getId();
        if (id == R.id.ez_square_btn) {
            intent = new Intent(InterfaceDemoActivity.this, SquareColumnActivity.class);
            startActivity(intent);
        } else if (id == R.id.ez_platform_login_btn) {
            OpenYSService.openYSServiceDialog(this, this);
        } else if (id == R.id.ez_v32_api_test) {
            Intent i = new Intent(InterfaceDemoActivity.this, InterfaceTestActivity.class);
            startActivity(i);
        } else if (id == R.id.ez_api_self_test) {
            intent = new Intent(InterfaceDemoActivity.this, InterfaceSelfTestActivity.class);
            startActivity(intent);
        }

    }

	@Override
	protected void onResume() {
		super.onResume();
	}
	@Override
	public void onOpenYSService(int result) {
		// TODO Auto-generated method stub
		
	}

}
